月亮词典
首页
查询
receive statement
接收语句
常用释义
词性释义
接收语句
例句
全部
A
specified
RECEIVE
statement
modifies
or
returns
at least
one row
to
a
Service Broker
queue
.
指定
的
RECEIVE
语句
至少
修改
一行
或
并
将
其
返回
到
ServiceBroker
队列
。
For
a
given
conversation
,
a
RECEIVE
statement
returns
messages
with a
status
of
1
in
ascending
message_sequence_number
order
.
对于
给定
的
会话
,
RECEIVE
语句
将
返回
status
为
1
的
消息
,
并
将
消息
按
message_sequence_number
的
升序
排列
。
If
the
queue
specified
in the
RECEIVE
statement
has
the
queue
status
set
to
OFF
,
the
statement
fails
with a Transact
-
SQL
error
.
如果
RECEIVE
语句
指定
的
队列
的
队列
状态
设置
为
OFF
,
则
该
语句
将
失败
,
并
返回
Transact-SQL
错误
。
The
RECEIVE
statement
locks
the
conversation
group
for the
messages
returned
until
the
transaction
that
contains
the
statement
completes
.
RECEIVE
语句
将
锁定
返回
的
消息
所属
的
会话
组
,
直到
包含
该
语句
的
事务
完成
为止
。
Number
of
sessions
that
are
currently
waiting
within a
RECEIVE
statement
for
this
queue
.
当前
正在
RECEIVE
语句
中
等待
此
队列
的
会话
数
。
Specifies
that the
RECEIVE
statement
waits for a
message
to
arrive
on the
queue
,
if
no
messages are
currently present
.
指定
如果
当前
没有
消息
,
则
RECEIVE
语句
将
等待
消息
到达
队列
。
This
number
includes
any
session
executing
a
receive
statement
,
regardless
of
whether
the
queue
monitor
started
the
session
.
此
数字
包括
任何
执行
接收
语句
的
会话
,
不管
队列
监视器
是否
启动
了
该
会话
。
The
WHERE
clause
of
the
RECEIVE
statement
may
only
contain
search
conditions
that
use
conversation_handle
or
conversation_group_id
.
RECEIVE
语句
的
WHERE
子句
可能
只
包含
使用
conversation_handle
或
conversation_group_id
的
搜索
条件
。
TIMEOUT
can
be
specified
in
the
RECEIVE
statement
or
in the GET CONVERSATION GROUP
statement
.
可以
在
RECEIVE
语句
或
GETCONVERSATIONGROUP
语句
中
指定
TIMEOUT
。
The
RECEIVE
statement
removes
received
messages
from
the
queue
unless
the
queue
specifies
message
retention
.
RECEIVE
语句
将
从
队列
中
删除
已
收到
的
消息
,
但
队列
指定
消息
保持
时
除外
。
All
messages
returned
by
a
RECEIVE
statement
belong
the
same
conversation
group
.
RECEIVE
语句
返回
的
所有
消息
都
属于
同一
个
会话
组
。
If
a
RECEIVE
statement
or a GET CONVERSATION GROUP
statement
specifies
an
unavailable
queue
,
that
statement
fails
with
a Transact-
SQL
error
.
如果
RECEIVE
语句
或
GETCONVERSATIONGROUP
语句
指定
了
不可
用
的
队列
,
则
该
语句
将
失败
,
并
出现
Transact-SQL
错误
。
To
receive
a
message
from
within
a
process
,
you
use
the
receive
statement
.
要
从
一个
进程
内
接收
一
条
消息
,
可
使用
receive
语句
。
Within
the
receive
statement
you
use
pattern
matches
to
determine
what
to
do
based
on
the
message
content
.
在
receive
语句
内
,
使用
模式
匹配
根据
消息
内容
来
确定
要
执行
哪些
操作
。
The
result
set
returned
by
a
RECEIVE
statement
is
implicitly
ordered
.
将
RECEIVE
语句
返回
的
结果
集
进行
隐式
排序
。
The
Receive
statement
labelled
Initiation
:
this
is
the
target
of
our
unit
test
initiation
.
标记
为
Initiation
的
Receive
语句
:
这
是
我们
单元
测试
启动
的
目标
。
A
RECEIVE
statement
clause
,
which
retrieves
one or more
messages
from
a Service Broker
queue
.
RECEIVE
语
句子
句
,
从
ServiceBroker
队列
检索
一
条
或
多
条
消息
。
When the
RETENTION
setting
for
the
queue
is
ON
,
the
RECEIVE
statement
updates
the
status
column
to
1
and
leaves
the
messages
in
the
queue
.
当
队列
的
RETENTION
设置
为
ON
时
,
RECEIVE
语句
将
status
列
更新
为
1
,
并
使
消息
留
在
队列
中
。
Now
create
the
receive
statement
to
output
the
message
(
see
Listing
7
).
接下来
创建
receive
语句
以
输出
消息
(
请参见
清单
7
)。
The
RECEIVE
statement
reads
messages
from
a
queue
and
returns
a
result
set
.
RECEIVE
语句
将
从
队列
读取
消息
并
返回
结果
集
。
更新时间:2025-04-26 14:03